package com.traceability.trace.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.traceability.trace.mapper.EnvironmentmonitoringMapper;
import com.traceability.trace.domain.Environmentmonitoring;
import com.traceability.trace.service.IEnvironmentmonitoringService;

/**
 * 生产地环境监测Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
@Service
public class EnvironmentmonitoringServiceImpl implements IEnvironmentmonitoringService 
{
    @Autowired
    private EnvironmentmonitoringMapper environmentmonitoringMapper;

    /**
     * 查询生产地环境监测
     * 
     * @param monitoringId 生产地环境监测主键
     * @return 生产地环境监测
     */
    @Override
    public Environmentmonitoring selectEnvironmentmonitoringByMonitoringId(Long monitoringId)
    {
        return environmentmonitoringMapper.selectEnvironmentmonitoringByMonitoringId(monitoringId);
    }

    /**
     * 查询生产地环境监测列表
     * 
     * @param environmentmonitoring 生产地环境监测
     * @return 生产地环境监测
     */
    @Override
    public List<Environmentmonitoring> selectEnvironmentmonitoringList(Environmentmonitoring environmentmonitoring)
    {
        return environmentmonitoringMapper.selectEnvironmentmonitoringList(environmentmonitoring);
    }

    /**
     * 新增生产地环境监测
     * 
     * @param environmentmonitoring 生产地环境监测
     * @return 结果
     */
    @Override
    public int insertEnvironmentmonitoring(Environmentmonitoring environmentmonitoring)
    {
        return environmentmonitoringMapper.insertEnvironmentmonitoring(environmentmonitoring);
    }

    /**
     * 修改生产地环境监测
     * 
     * @param environmentmonitoring 生产地环境监测
     * @return 结果
     */
    @Override
    public int updateEnvironmentmonitoring(Environmentmonitoring environmentmonitoring)
    {
        return environmentmonitoringMapper.updateEnvironmentmonitoring(environmentmonitoring);
    }

    /**
     * 批量删除生产地环境监测
     * 
     * @param monitoringIds 需要删除的生产地环境监测主键
     * @return 结果
     */
    @Override
    public int deleteEnvironmentmonitoringByMonitoringIds(Long[] monitoringIds)
    {
        return environmentmonitoringMapper.deleteEnvironmentmonitoringByMonitoringIds(monitoringIds);
    }

    /**
     * 删除生产地环境监测信息
     * 
     * @param monitoringId 生产地环境监测主键
     * @return 结果
     */
    @Override
    public int deleteEnvironmentmonitoringByMonitoringId(Long monitoringId)
    {
        return environmentmonitoringMapper.deleteEnvironmentmonitoringByMonitoringId(monitoringId);
    }
}
